package com.yunsc.store.vo;

import com.yunsc.store.entity.YunscStoreEntity;
import lombok.Data;

import java.util.Map;



/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-05-04 14:26
 */
@Data
public class ClientStoreDataVO {
    private YunscStoreEntity storeInfo;
    private String client;
    private Map<String, Object> setting;
    private Map<String, Object> clientData;

    /*public static void main(String[] args) {
        String content = "10001";

        // 创建AES实例，使用默认密钥
        // SymmetricCrypto aes = new SymmetricCrypto("AES");
        //
        // // 加密
        // String encryptStr = aes.encryptHex(content);
        //
        // // 解密
        // String decryptStr = aes.decryptStr(encryptStr);
        // System.out.println("加密前：" + content);
        // System.out.println("加密后：" + encryptStr);
        // System.out.println("解密后：" + decryptStr);
        // // String content = "明文";
        // 16位自定义密码
        String key = "1234567891011123";
        // 生成密钥
        byte[] byteKey = SecureUtil.generateKey(SymmetricAlgorithm.AES.getValue(), key.getBytes()).getEncoded();

        SymmetricCrypto aes = SecureUtil.aes(byteKey);

        // 加密
        String encryptData = aes.encryptBase64(content);
        System.out.println(encryptData);
        // 3gzFBDWRcV+QTORypK04Sg==

        // 解密
        String decryptData = aes.decryptStr(encryptData);
        System.out.println(decryptData);
        // 明文



    }*/
}
